import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入测试组件
import test from '@/views/test/test.vue'
// 导入登录页面组件
import Login from '@/views/login/login.vue'
Vue.use(VueRouter)

// const routes = []

const router = new VueRouter({
  routes: [
    {
      path: '/test',
      component: test
    },
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: Login
    }
  ]
})

export default router
